package com.aqie.advanced;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@ServletComponentScan(basePackages = "com.aqie.advanced.web.servlet")
public class AdvancedApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(AdvancedApplication.class).
         web(WebApplicationType.SERVLET).run(args);
        // SpringApplication.run(AdvancedApplication.class, args);
    }
}
